package com.jmp.api.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import one.stand.dto.PageResponse2;

import java.util.List;

@Data
@Builder
public class AiCustomerResponse {
    @ApiModelProperty(value = "用户信息,第一页才有值,后面页时无", dataType = "AiCustomerResponse.UserInfo")
    private UserInfo userInfo;
    @ApiModelProperty(value = "访问记录列表(分页)", dataType = "AiCustomerResponse.Record")
    private PageResponse2<Record> recordPage;

    @ApiModel("AiCustomerResponse.Record")
    @Data
    @Builder
    public static class Record {
        @ApiModelProperty("内容")
        private String targetName;
        @ApiModelProperty("创建时间")
        private Long time;
    }

    @ApiModel("AiCustomerResponse.UserInfo")
    @Data
    @Builder
    public static class UserInfo {
        @ApiModelProperty("访客头像")
        private String userImg;
        @ApiModelProperty("访客名称")
        private String userName;
        @ApiModelProperty("内容")
        private String content;
        @ApiModelProperty("内容高亮")
        private List<String> contentHighlight;
        @ApiModelProperty("成交率:小数")
        private Double rate;
        @ApiModelProperty("访客IM ID")
        private Integer chatId;
        @ApiModelProperty("电话")
        private String phone;
        @ApiModelProperty("电话")
        private String personalWx;

    }
}
